Skip to content

Fix poll_oneoff's handling of non-regular files.#6258

Merged
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
sunfishcode:sunfishcode/update-system-interface
Apr 21, 2023
Merged

Fix poll_oneoff's handling of non-regular files.#6258
sunfishcode merged 1 commit into
bytecodealliance:mainfrom
sunfishcode:sunfishcode/update-system-interface

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

poll_oneoff uses system_interface::ReadReady to compute how many bytes are ready to be read, which is part of the Preview1 poll_oneoff API. This updates to system-interface 0.25.7 which has a fix to handle special files such as /dev/urandom and /dev/null properly.

Fixes #6239.

`poll_oneoff` uses `system_interface::ReadReady` to compute how many
bytes are ready to be read, which is part of the Preview1 `poll_oneoff`
API. This updates to system-interface 0.25.7 which has a fix to handle
special files such as /dev/urandom and /dev/null properly.

Fixes bytecodealliance#6239.
@sunfishcode sunfishcode requested a review from a team as a code owner April 20, 2023 23:37
@sunfishcode sunfishcode requested review from abrown and removed request for a team April 20, 2023 23:37
@sunfishcode sunfishcode added this pull request to the merge queue Apr 21, 2023
Merged via the queue into bytecodealliance:main with commit 1a077df Apr 21, 2023
@sunfishcode sunfishcode deleted the sunfishcode/update-system-interface branch April 21, 2023 01:13
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Apr 28, 2023
…6258)

`poll_oneoff` uses `system_interface::ReadReady` to compute how many
bytes are ready to be read, which is part of the Preview1 `poll_oneoff`
API. This updates to system-interface 0.25.7 which has a fix to handle
special files such as /dev/urandom and /dev/null properly.

Fixes bytecodealliance#6239.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wasmtime fails to poll host /dev/random

2 participants